<template>
    <!--弹窗 1试用期  2以合作-->
    <div class="lPopup_box" v-show="islabel">
        <div class="box_header">
            <i class="bleft"></i>
            <span>确认职位审核通过？</span>
            <i @click="docancel" class=" el-icon-close fl"></i>
        </div>
        <div class="box_body">
            <div class="really" v-if="opType==1">自荐奖金<input v-if="companyInfo.checkState==2" v-model="comBonus" placeholder="请设置自荐奖金金额"></input>
                <span v-if="companyInfo.checkState==1" style='color:red;margin-left: 10px;margin-right: 10px'>{{comBonus}}</span>K
            </div>
            <div class="really" v-if="opType==0">
                确认 <span>{{jobRow.name}}</span> 审核不通过吗？
            </div>
            <div class="jobonus really" v-if="companyInfo.checkState==2&&opType==1">职位佣金<input v-model="ourJobbonus" placeholder="请设置职位奖金金额"></input>K</div>
            <div class="lzhifu">
                <div v-for="(item,index) in pws">
                    <input type="text" v-model="pws[index]" v-focus="index==aindex?true:false"  :data-id="index"  @input="inputPwd" maxlength="1"   >
                </div>
            </div>
            <p class="tal">请输入6位确认密码</p>
            <div class="lbtn">
                <el-button class="close" @click="docancel" type="primary" plain>取消</el-button>
                <el-button class="affirm" @click="doconfirm" type="primary" plain>确认</el-button>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "PwdDialog",
        directives: {
            'focus' (el, binding, vnode) {
                // console.log(binding)
                if(binding.value){
                    el.focus();
                }else{
                    el.blur();
                }
                el.onfocus = function () {}
                el.onblur = function () {}
            }
        },data(){
            return {
                pws:['','','','','',''],
                aindex:0,
                opType:0,
            }
        }
    }
</script>

<style scoped>

</style>